package com.dftdla.utils;

/**
 * @author 14501
 */
public class RedisKey {

    /**
     * 验证码
     * @param key
     * @return
     */
    public static String codeKey(String key){
        return key + "_code";
    }

    /**
     * 登录状态
     * @param key
     * @return
     */
    public static String loginKey(Long key){
        return key + "_login";
    }

    /**
     * 视频热度ZSet
     * @return
     */
    public static String videoHotKey() {
        return "_video_host_list";
    }

    public static String userHotVideoKey(Long id) {
        return "_hot_index_" + id;
    }

    public static String userMsgKey(Long id) {
        return id + "_msg_cache";
    }

    public static String userMsgAutoKey(Long id) {
        return id + "_msg_auto_cache";
    }
}
